package com.lancoo.znbkxx.net;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import io.reactivex.observers.DisposableObserver;
import okhttp3.ResponseBody;

/**
 * Create by TangJun on 2019/2/16
 */
public class HardFragmentApi {
//    public static void HardFragmentInfo(DisposableObserver<ResponseBody> subscriber) {
//        //Bean bean = new Bean();
//        //bean.getData().setMemberId(memberId);
//        Observable observable = HttpMethods.getInstance().getHttpApi().getHardFragmentInfo(); //在HttpServer中
//        HttpMethods.getInstance().toSubscribe(observable, subscriber);
//    }

    //stuId=sestu101&schoolId=S22_sa_2963&subjectId=S2-English&lphaseCode=B&itemType=1
    public static void getHardFragmentInfo(String key,String stuId, String schoolId,String subjectId,
                                            String lphaseCode, String itemType,DisposableObserver<ResponseBody> subscriber) {
        Map<String,String> map = new HashMap<>();
        map.put("Key",key);
        map.put("StuId",stuId);
        map.put("SchoolId",schoolId);
        map.put("SubjectId",subjectId);
        map.put("LphaseCode",lphaseCode);
        map.put("ItemType",itemType);
        //Bean bean = new Bean();
        //bean.getData().setMemberId(memberId);
        Observable observable = HttpMethods.getInstance().getHttpApi().getWrongFragmentInfo(map); //在HttpServer中
        HttpMethods.getInstance().toSubscribe(observable, subscriber);
    }

}
